package org.example.examsystem.mapper;


import org.example.examsystem.entity.Course ;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {
    List<Course> getCourses(@Param("offset") int offset, @Param("limit") int limit);
    int countCourses();
    void addCourse(Course course);
    void updateCourse(Course course);
    void deleteCourse(Integer cno);

    Course getCourseByName(String courseName);

    List<Course> getCourseList();
}